package se.prb.cheesymock;

import java.lang.reflect.Method;

/**
 * If a delegate object implements the {@link CheesyCallback} interface, the
 * {@link #invoke(Method, Object[])} method will be called upon every method
 * call on the mock object, regardless of whether a corresponding method exists
 * on the delete object or not.
 *
 * @author björn.ekryd
 * @author fredrik
 */
public interface CheesyCallback {
	/**
	 * @param method
	 *            the method that has been called
	 * @param arguments
	 *            method arguments
	 * @return
	 */
	public void invoke(Method method, Object[] arguments);
}
